{include file="header.tpl" }
{include file="Diamond.tpl"}
{literal}
<SCRIPT language=Javascript>
<!--
function validForm(){
	sn=s1.elements['shop_name'];
	if ((sn.value=="")){
		alert("请输入商铺名称关键词\r\n最好在两个字以上！");
		sn.focus();
		return false;
	}
}
function validForm2(){
	gn=s2.elements['goods_name'];
	if ((gn.value== "")){
		alert("请输入商品名称关键词\r\n最好在两个字以上！");
		gn.select();
		return false;
	}
}
-->
</script>
{/literal}
<table width="98%" border=0 cellspacing=0 cellpadding=0 align=center>
  <tr>
    <td width="170" height="50%" valign="top"><!-- left start -->
        <table width="100%" height="90%" border=0 cellspacing=0 cellpadding=4 class=i_table align=center>
          <tr align=center>
            <td class=left_head>推荐商铺</td>
          </tr>
          <tr >
            <td valign="top" align="center"> 
			{section name=key loop=$index_shop} &nbsp;&nbsp;{if $index_shop[key][0] eq "0"}<br><br>此 位 招 租{else}<a href="index.php?act=sd&SHOP_ID={$index_shop[key][0]}" target="_blank"><img src="{$index_shop[key][2]}" border="0" title="{$index_shop[key][3]}"></a><br>
              <a href="index.php?act=sd&SHOP_ID={$index_shop[key][0]}" target="_blank">{$index_shop[key][1]}</a><br>{/if}
            {/section} </td>
          </tr>
        {section name=key loop=$aTrust}
        <tr>
          <td height="1" bgcolor="#CCCCCC"></td>
        </tr>
        {/section}
        <tr align=center>
          <td class=left_head>新开商铺</td>
        </tr>
        <tr>
          <td height="113"><marquee align=middle id=scrollArea  onMouseOut=scrollArea.start() onMouseOver=scrollArea.stop() scrollamount=2 scrolldelay=30>
            <table width="100%"  border="0" cellspacing="0" cellpadding="0">
              <tr> {section name=key loop=$new}
                  <td><a href="index.php?act=sd&SHOP_ID={$new[key][0]}" target="_blank"><img src="{$new[key][2]}" ></a></td>
                  <td width="12%">&nbsp;&nbsp;&nbsp;</td>
                  {/section} </tr>
              <tr> {section name=key loop=$new}
                  <td align="center"><a href="index.php?act=sd&SHOP_ID={$new[key][0]}" target="_blank">{$new[key][1]}</a></td>
                  <td width="12%">&nbsp;&nbsp;&nbsp;</td>
                  {/section} </tr>
            </table>
          </marquee></td>
        </tr>
        <tr align=center>
          <td class=left_head>友情链接</td>
        </tr>
        <tr>
          <td align=center><br>
              <a href="http://www.phpbiz.cn/" target="_blank">phpBIZ官方网站</a><br>
			  <a href="http://wjl.cn/" target="_blank">望江楼</a><br>
              <a href="http://www.scu.edu.cn/" target="_blank">四川大学</a><br>
          <br></td>
        </tr>
      </table>
    </td>
    <!-- left end -->
    <td align="right" valign="top"><table width="99%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="50%" valign=top>
            <table width="100%" border="0" cellspacing="3" cellpadding="0" class=i_table>
              <tr>
                <td>
                  <table width="100%" border="0" cellpadding="0" cellspacing="0" >
                    <tr class="head">
                      <td>&nbsp;推荐商品</td>
                      <td colspan="-1" align=right>&nbsp;帮助：<a href="index.php?act=Help#9">如何成为首页推荐商品（商铺）</a>...</td>
                    </tr>
                    <tr>
                      <td height="150" colspan=2><table width="100%" height="150"  border="0" cellpadding="0" cellspacing="0">
                        <tr>
                          {section name=key loop=$index_goods}
                          <td height="80" align="center">{if $index_goods[key][1] eq "0"}
      此位招租
        {else}
        <a href="index.php?act=gd&GOODS_ID={$index_goods[key][0]}"><img src="{$index_goods[key][3]}" border="0" ></a>
        {/if}</td>
                          {/section}
                        </tr>
                        <tr>
                          {section name=key loop=$index_goods}
                          <td align="center">{if $index_goods[key][1]}
                              <a href="index.php?act=gd&GOODS_ID={$index_goods[key][0]}">
                              {$index_goods[key][1]}
                              </a>
                              {/if}</td>
                          {/section}
                        </tr>
                      </table>
                      <table width="100%" height="150"  border="0" cellpadding="0" cellspacing="0">
                          <tr>
                            {section name=key loop=$index_goods2}
                            <td height="80" align="center">{if $index_goods2[key][1] eq "0"}
                              此位招租
                                {else}
                                <a href="index.php?act=gd&GOODS_ID={$index_goods2[key][0]}"><img src="{$index_goods2[key][3]}" border="0" ></a>
                                {/if}</td>
                            {/section}
                          </tr>
                          <tr>
                            {section name=key loop=$index_goods2}
                            <td align="center">{if $index_goods2[key][1]}
                                <a href="index.php?act=gd&GOODS_ID={$index_goods2[key][0]}">
                                {$index_goods2[key][1]}
                                </a>
                                {/if}</td>
                            {/section}
                          </tr>
                        </table></td>
                    </tr>
                </table></td>
              </tr>
          </table></td>
        </tr>
      </table>
        <table>
          <TR align=center bgcolor="#FFFFFF">
            <TD height="1"></TD>
          </TR>
        </TABLE>
        <TABLE width="99%" border=0 cellpadding=0 cellspacing=1 bgcolor="#D4D0C8">
          <TR valign="middle"  bgcolor="#FFFFFF" class="head">
            <TD width="10%">&nbsp;<img src="{#t_images#}ico_search.gif" width="11" height="11">快速搜索</TD>
            <FORM METHOD=POST ACTION="index.php?act=Search" name='s1' onsubmit="return validForm();"><TD width="34%" >
			
			<INPUT name="shop_name" TYPE="text" id="shop_name" size="20" maxlength="20">
                &nbsp;<input name="submit2" type="submit" value='搜索商铺名称'>
             <input name="shopcondition" type="hidden" id="shopcondition" value="shop_name">
              <input name="code" type="hidden" id="code" value="dosearch">
              <input name="act" type="hidden" id="act" value="Search"> </td></FORM>
			  <FORM METHOD=POST ACTION="index.php?act=Search" name='s2' onsubmit="return validForm2();">
			  <td width="56%">
                <INPUT name="goods_name" TYPE="text" id="goods_name" size="20" maxlength="20">
&nbsp;<INPUT name="submit" TYPE="submit" value='搜索商品名称'>
              <input name="code" type="hidden" id="code" value="dosearch">
              <input name="act" type="hidden" id="act" value="Search"> {$hot}</TD></FORM>
            
          </TR>
      </TABLE>
        <table>
          <TR align=center bgcolor="#FFFFFF">
            <TD height="1"></TD>
          </TR>
        </TABLE>
        <table width="99%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="50%" valign=top>
              <table width="100%" border="0" cellspacing="3" cellpadding="0" class=i_table>
                <tr>
                  <td>
                    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" style='WORD-WRAP: break-word'>
                      <tr class="head">
                        <td>&nbsp;<a href="index.php?act=Lst&code=g">最新图片商品</a></td>
                        <td colspan="-1" align=right>&nbsp;</td>
                      </tr>
                      <tr>
                        <td height="150" colspan=2><table width="100%" height="100%"  border="0" cellpadding="0" cellspacing="0">
                            <tr>
                              {section name=key loop=$c}
                              <td height="80" align="center">   <a href="index.php?act=gd&GOODS_ID={$c[key][0]}"><img src="{$c[key][2]}" border="0" ></a></td>
                              {/section}
                            </tr>
                            <tr>
                              {section name=key loop=$index_goods}
                              <td align="center">  <a href="index.php?act=gd&GOODS_ID={$c[key][0]}">
                              {$c[key][1]}
                              </a>                                  </td>
                              {/section}
                            </tr>
                        </table></td>
                      </tr>
                  </table></td>
                </tr>
            </table></td>
          </tr>
      </table>
        <table>
          <TR align=center bgcolor="#FFFFFF">
            <TD height="1"></TD>
          </TR>
        </TABLE>        <!-- right start -->
        <table cellspacing=0 cellpadding=0 width="99%" border=0>
          <tr>
            <td valign=top width="50%">            <table width="99%" cellspacing=0 cellpadding=3 border=0 class=i_table style='WORD-WRAP: break-word'>
              <tbody>
                <tr>
                  <td width="81%" class=right_head>&nbsp;<a href="index.php?act=Lst&code=g">最新商品</a></td>
                  <td width="19%" align=right class=right_head><a href="index.php?act=Lst&code=g">更多...</a></td>
                </tr>
                {section name=key loop=$d}
                <tr class=dot>
                  <td >・<a href="index.php?act=gd&GOODS_ID={$d[key][0]}" title="{$d[key][1]}">
                    {$d[key][1]}
                  </a></td>
                  <td  align="right">{if $d[key][2]}
                      {$d[key][2]}
                      元
                      {else}
                      面议
                      {/if}</td>
                </tr>
                {/section}
            </table></td>
            <td valign=top width="50%"><table width="99%" border=0 align="center" cellpadding=3 cellspacing=0 class=i_table style='WORD-WRAP: break-word'>
                <tr class=right_head>
                  <td  width="82%" >&nbsp;<a href="index.php?act=Lst&code=g&FieldID=5">人气商品</a></td>
                  <td  width="18%" ><a href="index.php?act=Lst&code=g&FieldID=5">更多...</a></td>
                </tr>
              {section name=key loop=$a}
              <tr class=dot>
                <td width="82%">・<a href="index.php?act=gd&GOODS_ID={$a[key][0]}"  title="{$a[key][1]}">{$a[key][1]}</a></td>
                <td width="18%" align="right">{if $a[key][2]}{$a[key][2]}元{else}面议{/if}</td>
              </tr>
              {/section}
            </table></td>
          </tr>
      </table>
        <table width="100%">
          <TR align=center bgcolor="#FFFFFF">
            <TD height="1"></TD>
          </TR>
        </TABLE>
        <table width="99%" border="0" cellspacing="1" cellpadding="0">
          <tr>
            <td width="50%" valign=top>
              <table width="100%" border="0" cellspacing="3" cellpadding="0" class=i_table>
                <tr>
                  <td>
                    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" style='TABLE-LAYOUT: fixed;WORD-WRAP: break-word'>
                      <tr class="head">
                        <td>&nbsp;商品分类(分类由店长录入商品信息时选定)</td>
                        <td colspan="-1" align="right">&nbsp;</td>
                      </tr>
                      <tr>
                        <td colspan=2> {section name=key loop=$ca}{if $ca[key][1]}<br>
                          ・ <a href="index.php?act=Lst&code=search&CID={$ca[key][1]}" style="text-decoration: underline;"><b>{$ca[key][0]}</b></a>:{elseif $ca[key][3]} &nbsp;<a href="index.php?act=Lst&code=search&CID={$ca[key][3]}">{$ca[key][2]}</a>&nbsp;/{/if}{/section}</td>
                      </tr>
                  </table></td>
                </tr>
            </table></td>
          </tr>
        
          <tr> </tr>
    </table></td>
    <!-- right end -->
  </tr>
</table>
<table width="100%">
  <TR align=center bgcolor="#FFFFFF">
    <TD height="1"></TD>
  </TR>
</TABLE>

<table width="100%">
<TR align=center bgcolor="#FFFFFF">
  <TD height="1"></TD>
  </TR>
</TABLE>
{include file="Info.tpl"}
<table width="100%">
<TR align=center bgcolor="#FFFFFF">
  <TD height="1"></TD>
  </TR>
</TABLE></td>
</tr></table>
{include file="footer.tpl"}
